<template>
  <div class="mainPage">
    内容展示区
    <div>
      <mt-button type="default" @click="changeTheme">default</mt-button>
      <mt-button type="primary" v-close>primary</mt-button>
      <mt-button type="danger"  @click="$router.push('/listTemplate')">danger</mt-button>
      <mu-button color="primary">Primary</mu-button>
      <mu-button color="secondary">Secondary</mu-button>
      <mu-button color="success">Success</mu-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'mainPage',
  data () {
    return {
      
    }
  },
  mounted(){
    
  },
  created(){
    this.getInfor()
    console.log(this.$A.GUP())
  },
  methods:{
    getInfor(){
      this.$A.Go('get','/platformUserService/user/me').then(function(success){
        console.log(success)
      },function(err){

        console.log(err)

      })
    },
    changeTheme(){
      this.themeAdd('teal2', {
        primary: '#c33',
        secondary: '#ff4081',
        success: '#24D90C',
        warning: '#fdd835',
        info: '#FF8A1B',
        error: '#FC334E',
        track: '#bdbdbd',
      }, 'light')
      this.themeUse('teal2');
    },
  },
}
</script>
<style lang="scss" scoped>
  @import "mainPage.scss";
</style>
